"""
妙趣拾光锦盒客户端 URL Configuration
"""
from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static

urlpatterns = [
    path('admin/', admin.site.urls),
    
    # 第三方应用
    path('accounts/', include('allauth.urls')),
    
    # 自定义应用
    path('', include('blindbox.urls')),  # 主页和盲盒相关
    path('shopping/', include('shopping.urls')),  # 购物车
    path('orders/', include('order.urls')),  # 订单相关
    path('market/', include('market.urls')),  # 超市相关
    path('analytics/', include('analysis.urls')),  # 数据分析相关
    path('tracking/', include('analytics.urls')),  # 用户行为跟踪
    path('accounts/', include('accounts.urls')),  # 用户相关
    path('points/', include('points.urls')),  # 积分相关
    path('recommendations/', include('recommendation.urls')),  # 推荐系统
    path('chatbot/', include('chatbot.urls')),  # 聊天机器人
    path('help/', include('help_center.urls')),  # 帮助中心
]

# 静态文件和媒体文件服务
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

# 开发环境中的Debug工具栏
if settings.DEBUG:
    import debug_toolbar
    urlpatterns += [
        path('__debug__/', include(debug_toolbar.urls)),
    ]
